import request from '@/utils/request'

// 查询企业环评资料列表
export function listOpmEnvCompyAssess(query) {
  return request({
    url: '/environment/opmEnvCompyAssess/list',
    method: 'get',
    params: query
  })
}

// 查询企业环评资料详细
export function getOpmEnvCompyAssess(id) {
  return request({
    url: '/environment/opmEnvCompyAssess/' + id,
    method: 'get'
  })
}

// 新增企业环评资料
export function addOpmEnvCompyAssess(data) {
  return request({
    url: '/environment/opmEnvCompyAssess',
    method: 'post',
    data: data
  })
}

// 修改企业环评资料
export function updateOpmEnvCompyAssess(data) {
  return request({
    url: '/environment/opmEnvCompyAssess',
    method: 'put',
    data: data
  })
}

// 删除企业环评资料
export function delOpmEnvCompyAssess(id) {
  return request({
    url: '/environment/opmEnvCompyAssess/' + id,
    method: 'delete'
  })
}
